import Layout from '@/layout'

/* 银行管理员路由模块 */
const menuRouter = [
    /* 系统首页 */
    // {
    //     path: '/manager',
    //     name: 'Manager',
    //     component: Layout,
    //     redirect: '/manager/index',
    //     meta: {
    //         title: '系统首页',
    //         icon: 'peoples',
    //         roles: ['PA','BA','CREDIT','CREDIT_ADMIN','GOV','CM']
    //     },
    //     children: [{
    //         path: 'index',
    //         component: () => import('@/views/dashboard/index'),
    //         name: '/manager/index',
    //         meta: {
    //             title: '系统首页',
    //             icon: 'home',
    //         }
    //     }] 
    // },
    {
        "cuser":"",
        "res_order":0,
        "res_isvalid":true,
        "res_pid":"R",
        "path":"/manager",
        "res_desc":"",
        "update_time":"2022-05-06T02:36:58.000+0000",
        children: [{
            path: 'index',
            component: () => import('@/views/dashboard/index'),
            name: '/manager/index',
            meta: {
                title: '系统首页',
                icon: 'home',
            }
        }],
        "res_cat":"",
        "id":"b178ae820b5c8d3a02281b41fb95ad0e",
        "redirect":"/manager/index",
        "res_val":"系统首页",
        "create_time":"2022-01-21T09:36:50.000+0000",
        "uuser":"",
        "lay_mark":"",
        "icon_cls":"home",
        "res_code":"",
        "res_type":"M",
        "id_mark":119,
        // "component":"/dashboard/index",
        "component": Layout,
        "deleted":false,
        "meta":{
            "icon":"home",
            "title":"系统首页"
        },
        "grade":0,
        "name":"",
        "mark":0
    },
    /* 金融风控分析 */
    {
        path: '/analysis',
        name: 'Analysis',
        component: Layout,
        redirect: '/analysis/basics',
        meta: {
            title: '金融风控分析',
            icon: 'home',
            roles: ['PA','BA','CREDIT','CREDIT_ADMIN','GOV','CM']
        },
        children: [{
            path: 'basics',
            component: () => import('@/views/roles/admin/analysis/basics'),
            name: '/analysis/basics',
            meta: {
                title: '贷款基本面',
            }
        },{
            path: 'badBasics',
            component: () => import('@/views/roles/admin/analysis/badBasics'),
            name: '/analysis/badBasics',
            meta: {
                title: '不良贷款风险',
            }
        },{
            path: 'guarantee',
            component: () => import('@/views/roles/admin/analysis/guarantee'),
            name: '/analysis/guarantee',
            meta: {
                title: '融资担保',
            }
        },{
            path: 'details',
            component: () => import('@/views/roles/admin/analysis/details'),
            name: '/analysis/details',
            meta: {
                title: '风控明细',
            }
        }]
    },
    /* 企业画像 */
    {
        path: '/portray1',
        name: 'Portray1',
        component: Layout,
        redirect: '/portray1/index',
        meta: {
            title: '企业画像',
            icon: 'portrait',
            roles: ['PA','BA','CREDIT','CREDIT_ADMIN','GOV','CM']
        },
        children: [
            {
                path: 'index',
                component: () => import('@/views/dashboard/portray1'),
                name: '/portray1/index',
                meta: {
                    title: '企业画像',
                }
            },
            {
                path: 'companyMessage',
                component: () => import('@/views/dashboard/modules/companyMessage'),
                name: '/portray1/companyMessage',
                meta: {
                    title: '企业信息',
                },
                hidden:true
            },
            {
                path: 'license',
                component: () => import('@/views/dashboard/modules/license'),
                name: '/portray1/license',
                meta: {
                    title: '企业授权',
                },
                hidden:true
            },
            {
                path: 'riskReport',
                component: () => import('@/views/dashboard/modules/riskReport'),
                name: '/portray1/riskReport',
                meta: {
                    title: '风控报告',
                },
                hidden:true
            },
            {
                path: 'selfRisk',
                component: () => import('@/views/dashboard/modules/selfRisk'),
                name: '/portray1/selfRisk',
                meta: {
                    title: '自身风险',
                },
                hidden:true
            },
            {
                path: 'relativeRisk',
                component: () => import('@/views/dashboard/modules/relativeRisk'),
                name: '/portray1/relativeRisk',
                meta: {
                    title: '关联风险',
                },
                hidden:true
            },
            {
                path: 'consensus',
                component: () => import('@/views/dashboard/modules/consensus'),
                name: '/portray1/consensus',
                meta: {
                    title: '查看舆情',
                },
                hidden:true
            }
        ]
    },
    /* 企业评估 */
    {
        path: '/assess',
        name: 'Assess',
        component: Layout,
        redirect: '/assess/index',
        meta: {
            title: '企业评估',
            icon: 'portrait',
            roles: ['PA','BA','CREDIT','CREDIT_ADMIN','GOV','CM']
        },
        children: [{
            path: 'index',
            component: () => import('@/views/dashboard/assess'),
            name: '/assess/index',
            meta: {
                title: '企业评估',
            }
        }]
    },
    /* 客户管理 */
    {
        path: '/a_customer',
        name: 'ACustomer',
        component: Layout,
        redirect: '/a_customer/purpose_list',
        meta: {
            title: '客户管理',
            icon: 'customer',
            roles: ['PA','BA','CREDIT','CREDIT_ADMIN','GOV','CM']
        },
        children: [{
                path: 'purpose_list',
                name: '/a_customer/purpose_list',
                component: () => import('@/views/roles/admin/customer/purpose'),
                meta: {
                    title: '意向客户',
                }
            },
            {
                path: 'white_list',
                name: '/a_customer/white_list',
                component: () => import('@/views/roles/admin/customer/white'),
                meta: {
                    title: '订阅客户',
                }
            },

            {
                path: 'recommend_list',
                name: '/a_customer/recommend_list',
                component: () => import('@/views/roles/admin/customer/recommend'),
                meta: {
                    title: '推荐客户',
                }
            },
            {
                path: 'black_list',
                name: '/a_customer/black_list',
                component: () => import('@/views/roles/admin/customer/black'),
                meta: {
                    title: '黑名单客户',
                }
            },
        ]
    },
    /* 客户分配 */
    {
        path: '/work',
        name: 'Work',
        component: Layout,
        redirect: '/work/assign',
        meta: {
            title: '客户分配',
            icon: 'work',
            roles: ['PA','BA','CREDIT','CREDIT_ADMIN','GOV','CM']
        },
        children: [{
            path: 'assign',
            name: '/work/assign',
            component: () => import('@/views/roles/admin/work/assign_customer'),
            meta: {
                title: '客户分配',
            }
        }]
    },
    /* 风险预警 */
    {
        path: '/credit',
        name: 'Credit',
        component: Layout,
        redirect: '/credit/extend_list',
        meta: {
            title: '风险预警',
            icon: 'credit',
            roles: ['PA','BA','CREDIT','CREDIT_ADMIN','GOV','CM']
        },
        children: [{
            path: 'extend_list',
            component: () => import('@/views/roles/editor/customer/credit'),
            name: '/credit/extend_list',
            meta: {
                title: '风险预警',
            }
        }]
    },
    /* 预警推送管理 */
    {
        path: '/warnPush',
        name: 'WarnPush',
        component: Layout,
        redirect: '/warnPush/extend_list',
        meta: {
            title: '预警推送管理',
            icon: 'credit',
            roles: ['PA','BA','CREDIT','CREDIT_ADMIN','GOV','CM']
        },
        children: [{
            path: 'extend_list',
            component: () => import('@/views/roles/editor/customer/warnPush'),
            name: '/warnPush/extend_list',
            meta: {
                title: '预警推送管理',
            }
        }]
    },
    /* 额度查询 */
    {
        path: '/limit',
        name: 'Limit',
        component: Layout,
        redirect: '/limit/credit_list',
        meta: {
            title: '额度查询',
            icon: 'limit',
            roles: ['PA','BA','CREDIT','CREDIT_ADMIN','GOV','CM']
        },
        children: [{
            path: 'credit_list',
            component: () => import('@/views/roles/editor/customer/limit'),
            name: '/limit/credit_list',
            meta: {
                title: '额度查询',
            }
        }]
    },
    /* 企业评分管理 */
    {
        path: '/s_coreManage',
        name: 'ScoreManage',
        component: Layout,
        redirect: '/s_coreManage/ruleAdmin',
        meta: {
            title: '企业评分管理',
            icon: 'customer',
            roles: ['PA','BA','CREDIT','CREDIT_ADMIN','GOV','CM']
        },
        children: [
            {
                path: 'ruleAdmin',
                name: '/s_coreManage/ruleAdmin',
                component: () => import('@/views/gradManage/ruleManageAdmin/index'),
                meta: {
                    title: '评分模型管理',
                }
            },
            {
                path: 'qScore',
                name: '/s_coreManage/qScore',
                component: () => import('@/views/gradManage/scoresQuery/index'),
                meta: {
                    title: '评分查询',
                }
            },
            {
                path: 'define',
                name: '/s_coreManage/define',
                component: () => import('@/views/gradManage/defineManage/index'),
                meta: {
                    title: '评分定义管理',
                }
            }
        ]
    },
    /* 工作台 */
    {
        path: '/a_work',
        name: 'AWork',
        component: Layout,
        redirect: '/a_work/auth_manage',
        meta: {
            title: '工作台',
            icon: 'work',
            roles: ['PA','BA','CREDIT','CREDIT_ADMIN','GOV','CM']
        },
        children: [
            {
                path: 'auth_manage',
                name: '/a_work/auth_manage',
                component: () => import('@/views/roles/admin/work/auth_manage'),
                meta: {
                    title: '授权协议管理',
                }
            },
            {
                path: 'auth_examine',
                name: '/a_work/auth_examine',
                component: () => import('@/views/roles/admin/work/auth_examine'),
                meta: {
                    title: '授权协议审核',
                }
            },
            {
                path: 'auth_records',
                name: '/a_work/auth_records',
                component: () => import('@/views/roles/admin/work/auth_records'),
                meta: {
                    title: '授权任务',
                }
            },
            {
                path: 'auth_down',
                name: '/a_work/auth_down',
                component: () => import('@/views/roles/admin/work/auth_down'),
                meta: {
                    title: '下载审批',
                }
            },
            {
                path: 'auth_search',
                name: '/a_work/auth_search',
                component: () => import('@/views/roles/admin/work/auth_search'),
                meta: {
                    title: '授权协议查询',
                }
            },
        ]
    },
    /* 接口管理 */
    {
        path: '/connector',
        name: 'Connector',
        component: Layout,
        redirect: '/connector/connectorTheme',
        meta: {
            title: '接口管理',
            icon: 'customer',
            roles: ['PA','BA','CREDIT','CREDIT_ADMIN','GOV','CM']
        },
        children: [
            {
                path: 'connectorTheme',
                name: '/connector/connectorTheme',
                component: () => import('@/views/data-out/connectorTheme/index'),
                meta: {
                    title: '接口主题',
                }
            },
            {
                path: 'dataConnector',
                name: '/connector/dataConnector',
                component: () => import('@/views/data-out/dataConnector/index'),
                meta: {
                    title: '数据接口',
                }
            }
        ]
    },
    /* 数据源管理 */
    {
        path: '/dataSource',
        name: 'DataSource',
        component: Layout,
        redirect: '/dataSource/index',
        meta: {
            title: '数据源管理',
            icon: 'peoples',
            roles: ['PA','BA','CREDIT','CREDIT_ADMIN','GOV','CM']
        },
        children: [{
            path: 'index',
            component: () => import('@/views/data-out/dataSource/index'),
            name: '/dataSource/index',
            meta: {
                title: '数据源管理',
                icon: 'home',
            }
        }] 
    },
    /* 系统管理 */
    {
        path: '/s_permission',
        name: 'SPermission',
        component: Layout,
        redirect: '/s_permission/target',
        meta: {
            title: '系统管理',
            icon: 'super',
            roles: ['PA'],
        },
        children: [
            {
                path: 'target',
                name: '/s_permission/target',
                component: () => import('@/views/gradManage/targetManage/index'),
                meta: {
                    title: '指标管理',
                }
            },{
                path: 'rule',
                name: '/s_permission/rule',
                component: () => import('@/views/gradManage/ruleManage/index'),
                meta: {
                    title: '银行模型管理',
                }
            },
            {
                path: 'user_list',
                name: '/s_permission/user_list',
                component: () => import('@/views/roles/super/user'),
                meta: {
                    title: '用户管理',
                }
            },
            {
                path: 'role_list',
                name: '/s_permission/role_list',
                component: () => import('@/views/roles/super/role'),
                meta: {
                    title: '角色管理',
                }
            },
            {
                path: 'institution_list',
                name: '/s_permission/institution_list',
                component: () => import('@/views/roles/super/institution'),
                meta: {
                    title: '机构管理',
                }
            },
            {
                path: 'resource_list',
                name: '/s_permission/resource_list',
                component: () => import('@/views/roles/super/resource'),
                meta: {
                    title: '资源管理',
                }
            },
            {
                path: 'system_dictionary',
                name: '/s_permission/system_dictionary',
                component: () => import('@/views/roles/super/dict'),
                meta: {
                    title: '数据字典',
                }
            },
            {
                path: 'system_logs',
                name: '/s_permission/system_logs',
                component: () => import('@/views/roles/super/logs'),
                meta: {
                    title: '日志管理',
                }
            },

        ]
    },
]

export default menuRouter